﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GONES.IBLL;

public partial class Console_System_Dic_DicEdit : CPage
{
    public string DicId { get; set; }
    public string DicTitle { get; set; }
    public string Code { get; set; }
    public string ParentId { get; set; }
    public string ParentTitle { get; set; }
    public string SortNum { get; set; }
    public string ReMark { get; set; }
    public string Status{get;set;}

    protected void Page_Load(object sender, EventArgs e)
    {
        DicId = Request.QueryString["ID"].ToString();
        var dicManager = AppContext.GetObject("S_DicManager") as IS_DicManager;
        GONES.Model.S_Dic dic = new GONES.Model.S_Dic();
        dic = dicManager.Get(DicId);
        if (dic != null)
        {
            DicTitle = dic.Title;
            Code = dic.Code;
            ParentId = dic.Parentid.Trim();
            ParentTitle = dicManager.Get(ParentId).Title;
            SortNum = dic.SortNum.ToString();
            ReMark = dic.Remark;
            Status = dic.Status==1?"checked":"";
        }
    }
}